import java.util.Random;
import java.util.Scanner;
import java.util.Stack;

public class Test {
    /*public static String func(String s){
        char[] array = new char[300000];
        Stack<Character> stack = new Stack<>();
        for(int i = 0;i<s.length();i++){
            char ch = s.charAt(i);
            if(stack.empty()){
                stack.push(ch);
            }else{
                if(ch==stack.peek()){
                    stack.pop();
                }else{
                    stack.push(ch);
                }
            }
        }
        int j = 0;
        Stack<Character> stack2 = new Stack<>();
        while(!stack.empty()){
            stack2.push(stack.pop());
        }
        while(!stack2.empty()){
            array[j++]=stack2.pop();
        }
        return new String(array);
    }
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s1 = in.nextLine();
        String s2 = func(s1);
        if(s2==null){
            System.out.println(0);
        }else{
            System.out.println(s2);
        }
    }*/
    /*编写程序数一下 1到 100 的所有整数中出现多少个数字9*/

   /* public static void main(String[] args) {
        int count = 0;
        for (int i = 1; i <101 ; i++) {
            if(i%10==9&&i/10==9){
                count+=2;
            }else if(i%10==9||i/10==9){
                count+=1;
            }
        }
        System.out.println(count);
    }*/
    /*计算1/1-1/2+1/3-1/4+1/5 …… + 1/99 - 1/100*/
    /*public static void main(String[] args) {
        int flag = 1;
        double sum = 0;
        for (int i = 1; i <=100 ; i++) {
            sum+=(1.0/i)*(flag);
            flag=-flag;
        }
        System.out.println(sum);
    }*/
   /* 完成猜数字游戏   ，用户输入数字，判断该数字是大于，小于，还是等于随机生成的数字，等于的时候退出程序。*/
   /*public static void main(String[] args) {
       Random random = new Random();
       int ret = random.nextInt(101);
       while(true){
           Scanner sc =  new Scanner(System.in);
           int num = sc.nextInt();
           if(num>ret){
               System.out.println("猜大了");
           }else if(num<ret){
               System.out.println("猜小了");
           }else{
               break;
           }
       }
   }
*/
 /*  public static void main(String[] args)
   {
       Scanner in = new Scanner(System.in);
       int num =in.nextInt();
       for(int i = 0;i<num;i++)
       {
           for(int j = 0;j<num;j++)
           {
               if(i==j||i+j==num-1)
               {
                   System.out.print("* ");
               }
               else
               {
                   System.out.print("  ");
               }
           }
           System.out.println("");
       }

   }*/
   public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       String ans = "123456";
       int num = 3;
       while(num!=0){
           String s = sc.nextLine();
           if(s.equals(ans)){
               System.out.println("登录成功");
           }
           num--;
       }
       System.out.println("退出程序 ");
   }
}